<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" name="id" value="{$row.id}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><i class="text-muted">*</i>编码:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" name="row[code]" value="" data-rule="required"/>
        </div>
    </div>
    <div class="form-group">
        <label for="realname" class="control-label col-xs-12 col-sm-2"><i class="text-muted">*</i>姓名:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="realname" name="row[realname]" value="" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="mobile" class="control-label col-xs-12 col-sm-2"><i class="text-muted">*</i>手机:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="mobile" name="row[mobile]" value="{$row.mobile}" data-rule="required" />
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <div class="col-xs-2"></div>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed ">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>